package com.gk.company.view.bottom
{
	import com.gk.company.control.event.UpdateFriendListInfoEvent;
	
	import flash.events.Event;
	
	import org.robotlegs.mvcs.Mediator;
	
	public class FriendStaffViewMediator extends Mediator
	{
		
		[Inject]
		public var fsView:FriendStaffView;
		
		public function FriendStaffViewMediator()
		{
			super();
		}
		
		override public function onRegister():void
		{
			eventMap.mapListener(eventDispatcher,UpdateFriendListInfoEvent.UPDATE_FRIEND_LIST,updateFrinedList);
		}
		
		private function updateFrinedList(e:UpdateFriendListInfoEvent):void
		{
			fsView.updateFriendInfo(e.frinedVect);
			
		}		
		
	}
}